app.bin: app.elf
	arm-linux-objcopy -O binary -S $< $@
app.elf: head.o main.o
	arm-linux-ld -Ttext 0x30000000 head.o main.o -o $@
head.o: head.S
	arm-linux-gcc -c -o $@ $<
main.o: main.c
	arm-linux-gcc -c -o $@ $<

.PHONY: clean
clean:
	rm -fr *.bin *.elf *.o


